package nuc.wxkj.boot_zb02.dao;

import nuc.wxkj.boot_zb02.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptDao {

    List<Dept> selectDepts();
    int addDept(Dept dept);
    Dept selectDeptById(int id);
    int updateDept(Dept dept);
    int deleteDept(@Param("id") int id);
}
